Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix StreamConsumer wakeup races #666

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

trtt
Copy link
Contributor

@trtt trtt commented Mar 30, 2024

see #665

@scanterog
Copy link
Collaborator

scanterog commented Aug 8, 2024

Nice finding @trtt! This looks correct to me but if @duarten, @davidblewett and @fede1024 could also give it another look would be great.

let evname = rdsys::rd_kafka_event_name(event.ptr());
CStr::from_ptr(evname).to_bytes()
};
let evname = String::from_utf8(buf.to_vec()).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please let's try to avoid to panic here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. I'm not even sure why I changed it in the first place
934c580

@davidblewett
Copy link
Collaborator

I will try to review this this week. I was hopeful it would address the flaky *nonempty_callback tests, but it seems like they can still happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants